<?php

	 /*** error reporting on ***/
	 error_reporting(E_ALL);
	
	 /*** define the site path ***/
	 $site_path = realpath(dirname(__FILE__));
	 define ('__SITE_PATH', $site_path);
	
	 /*** include the init.php file ***/
	 include 'app' . DIRECTORY_SEPARATOR .'includes' . DIRECTORY_SEPARATOR . 'init.php';
	
	 /*** load the router ***/
	 $registry->router = new router($registry);
	
	 /*** set the controller path ***/
	 $registry->router->setPath (__SITE_PATH . DIRECTORY_SEPARATOR . 'app' . DIRECTORY_SEPARATOR . 'controllers');
	
	 /*** load up the template ***/
	 $registry->template = new template($registry);
	
	 /*** load the controller ***/
	 $registry->router->loader();

?>
